export function getCode() {
    return new Promise((resolve, reject) => {
        // #ifdef MP
        return uni.login({
            success: r => {
                resolve(r.code);
            },
            fail: reject
        })
        // #endif
        resolve("");
    })

}